﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebClient.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content">
        <div id="container">
            <div id="selectbox">
                <div style="padding-bottom: 25px; color:#F00; font-size: 18px; font-weight: bold;"><h1>Order Vietnamese food online</h1></div>
                <div style="float: left; padding-right: 50px; border-right: 1px solid #DADADA;">
                    <b>Cuisines</b><br /><br />
                    <% var lstFoodType = Model.FoodTypeModel.GetModel.LstObjModel; %>
                    <% foreach (var foodtype in lstFoodType)
                       {
                           if (foodtype.ID.ToString() == ViewData["idfoodtype"].ToString())
                           { 
                    %>
                            <a href="<%= Url.Action("Cuisines", "Home", new { idFoodType = foodtype.ID }) %>" id="SelectedFoodType"><%= foodtype.Name%></a><br />
                        <% }
                           else
                           { %>
                            <a href="<%= Url.Action("Cuisines", "Home", new { idFoodType = foodtype.ID }) %>" id="ftlinks"><%= foodtype.Name%></a><br />
                        <% }
                       } 
                    %> 
                </div>
                <% if (ViewData["idcity"] == null)
                   { %>
                    <div style="float: left; width: 450px; padding-top: 20px; padding-left: 50px;" id="selectboxcity">
                        <% var lstCity = Model.AllCityModel.GetModel.LstObjModel; %>
                        <% foreach (var city in lstCity)
                           {
                        %>
                            <div style="float: left; width: 200px; padding: 10px;">
                                <a href="<%= Url.Action("Cuisines_SelectDistricts", "Home", new { idFoodType = ViewData["idfoodtype"].ToString(), idcity = city.ID }) %>"><%= city.Name%></a>
                            </div>
                        <% } 
                        %> 
                        <div style="clear: both;"></div>
                    </div>
                <% }
                   else
                   { %>
                    <div style="float: left; width: 450px; padding-top: 20px; padding-left: 50px;" id="selectboxcity">
                        <% var lstDistrict = Model.DistrictModelByCity.GetModel.LstObjModel; %>
                        <% foreach (var district in lstDistrict)
                           {
                        %>
                            <div style="float: left; width: 200px; padding: 10px;">
                                <a href="<%= Url.Action("SelectRestaurants", "Home", new { iddistrict = district.ID, idfoodtype = ViewData["idfoodtype"].ToString() }) %>"><%= district.Name%></a>
                            </div>
                        <% } 
                        %> 
                        <div style="clear: both;"></div>
                    </div>
                <% } %>
                <div style="clear: both;"></div>
            </div>
        </div>
    </div>
</asp:Content>
